From: Ian Campbell Date: Mon, 6 Aug 2007 12:19:44 +0000 (+0100) Subject: [32on64] Copy the right grant table status code back to the guest. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15010^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=44cdadd1cd9fc7e081498d4b453b52ffd4cc6380;p=xen.git [32on64] Copy the right grant table status code back to the guest. Signed-off-by: Ian Campbell --- diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_table.c index 342e35622d..882d435a65 100644 --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -161,7 +161,7 @@ int compat_grant_table_op(unsigned int cmd, while ( n-- ) { guest_handle_add_offset(xfer, -1); - if ( __copy_field_to_guest(xfer, nat.xfer, status) ) + if ( __copy_field_to_guest(xfer, nat.xfer + n, status) ) rc = -EFAULT; } } @@ -199,7 +199,7 @@ int compat_grant_table_op(unsigned int cmd, while ( n-- ) { guest_handle_add_offset(copy, -1); - if ( __copy_field_to_guest(copy, nat.copy, status) ) + if ( __copy_field_to_guest(copy, nat.copy + n, status) ) rc = -EFAULT; } }